package com.yao.spider.yiyao.dao;

import com.yao.spider.yiyao.bean.DongFMBean;
import com.yao.spider.yiyao.bean.DongFMErrorBean;
import com.yao.spider.yiyao.mapper.DongFMBeanMapper;
import com.yao.spider.yiyao.mapper.DongFMErrorBeanMapper;
import org.apache.ibatis.session.SqlSession;

public class DongFMErrorBeanDaoImpl implements DongFMErrorBeanDao{
    public int insert(DongFMErrorBean personInfo, SqlSession session) {
        DongFMErrorBeanMapper mapper = session.getMapper(DongFMErrorBeanMapper.class);
        mapper.insert(personInfo);
        session.commit();
        return 1;
    }
}
